package com.zk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

@Data
public class OrderDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Long order_detail_id;
    //订单ID
    private Long order_id;
    //类别，0为“产品”,1为“设备”
    private int category;
    //产品或设备ID
    private Long product_id;
    //商品名称
    private String product_name;
    //商品图片
    private String product_img;
    //购买数量
    private int num;
    //下单时单价
    private double price;

}
